//
//  DYThemeVedioView.m
//  BaiSi
//
//  Created by mac on 16/11/2.
//  Copyright © 2016年 DeYi. All rights reserved.
//

#import "DYThemeVedioView.h"
#import "DYThemeItem.h"
#import <UIImageView+WebCache.h>

@interface DYThemeVedioView ()
@property (weak, nonatomic) IBOutlet UIImageView *vedioView;

@property (weak, nonatomic) IBOutlet UILabel *playLabel;

@property (weak, nonatomic) IBOutlet UILabel *timeLabel;

@end
@implementation DYThemeVedioView

- (void)setItem:(DYThemeItem *)item {
    [super setItem:item];
    [_vedioView sd_setImageWithURL:[NSURL URLWithString:item.image0]];
    _playLabel.text = [NSString stringWithFormat:@"%ld播放",item.playcount];
    _timeLabel.text = [NSString stringWithFormat:@"%02ld:%02ld",item.videotime / 60 ,item.videotime % 60];
    
    
}

@end
